package com.example.myactspringboot.dao;

import com.example.myactspringboot.annotation.DBMapper;
import com.example.myactspringboot.bean.BusiTaskMain;
import com.example.myactspringboot.bean.BusiTaskNode;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Create 2023-09-16 08:03
 * @Description
 */
@Mapper
//@DBMapper
public interface BusiTaskMainMapper {
    public List<BusiTaskMain> getAllTaskMain(BusiTaskMain busiTaskMain);
    int saveOne(BusiTaskMain busiTaskMain);
    BusiTaskMain getById(int id);
    BusiTaskMain getByInstanceId(String instanceId);
    BusiTaskMain getByInstId(String instanceId);
    int updateMain(BusiTaskMain busiTaskMain);

    int saveOneNode(BusiTaskNode busiTaskNode);

    //--------------
   int  saveTodoItem(BusiTaskNode busiTaskNode);
   List<BusiTaskNode> getTaskNodeList(String taskId,String name);
   int updateBusiTaskNode(BusiTaskNode busiTaskNode);
   BusiTaskNode gettaskNode(String taskId);
}
